package com.firefighting.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.firefighting.entity.TaskItem;

public interface TaskItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TaskItem record);

    int insertSelective(TaskItem record);

    TaskItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TaskItem record);

    int updateByPrimaryKey(TaskItem record);
    
    /** zhyan 查询某个任务中的所有任务项 */
    @SuppressWarnings("rawtypes")
	List<HashMap> selectTaskItemListByTaskId(@Param("taskId") int taskId);
    //Liuxc查询建筑物已下发的contentID
  	List<Integer> getcontentIdInTaskOfBuilding(@Param("building")Integer buildingId);
  //Hanjd查询计划建筑物已下发的contentID
  	List<Integer> getcontentIdInTaskOfBuildingPlan(@Param("plan")Integer planId,@Param("building")Integer buildingId);
  //Hanjd查询计划建筑物已完成的contentID
  	List<Integer> getFinishContentIdInTaskOfBuildingPlan(@Param("plan")Integer planId,@Param("building")Integer buildingId);
  	/** zhyan 查询任务项的详细信息 */
  	@SuppressWarnings("rawtypes")
	HashMap selectTaskItemInfoById(@Param("id") int id);
  	
  	/** zhyan 根据任务id查询该任务中所有三级维保内容的id */
  	List<Integer> selectMaintenanceContentIdListByTaskId(@Param("taskId") int taskId);
}